/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ecom.beans.dish;

import ecom.beans.store.*;


import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Tian
 */
@Remote
public interface DishEntityFacadeRemote {

    public List<DishEntity> getAllDishes();
   
	public boolean addDish(String name,double price,int quantity);
   
	public List<DishEntity> removeAllDish();

    public DishEntity removeDishById(int id);
   
	public void updateDish(DishEntity produit);
   
	public DishEntity addDish(String name,double price,int quantity, String dishType,int calorieNumber,StoreEntity store);

    public List<DishEntity> getAllDishesForCustomer();
    
    public List<DishEntity> getAllDishesForResto(int id);
    
    public List<DishEntity> removeAllDishesByRestoId(int restoId);
    
    public DishEntity getDishById(int id);

	public List<DishEntity> removeAllDishesByRestoId(Long restoId);
	
	public List<DishEntity> getAllDishesForResto(Long restoId);
	
	public DishEntity getDishByNameAndStoreId(String name, int storeId);

	
}
